using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Yozeev.Authorization.Roles;

namespace Yozeev.SystemConfig
{
    /// <summary>
    /// 角色权限
    /// </summary>
    public class PowerRole : ByUserEntity<Guid>
    {
        /// <summary>
        /// 角色标识
        /// </summary>
        public int RoleId { get; set; }
        [ForeignKey("RoleId")]
        public virtual Role Role { get; set; }
        /// <summary>
        /// 权限标识
        /// </summary>
        public Guid PowerId { get; set; }
        [ForeignKey("PowerId")]
        public virtual Power Power { get; set; }
    }
}
